Python Json Check Array Php Functions With Parameters