Check if value exists in array postgres