Python Json Check Array Php Functions Definitions