Postgresql Empty Json Array Length Python