Postgresql Empty Json Array Length Sql Function To Get Current