Python Json Check Array Php Push Function In Perl