If there is no user query, then `$params['queries']` is undefined