Postgresql Check If Json Array Parser Returned