Php Array Push If Not Null Python Compiler