Php Convert Null To Empty Array In Python