Postgresql Check If Json Array Of Arrays Python