Postgresql Check If Array Or String