Let the init method check if the query is not empty.
If it's empty, run the setQuery method.