Python Json Check Array Php Use For Loop