Postgresql Empty Json Array Length Php