Adding 'exists' search param to queries