This is ported over from "if the query is empty throw a NotFoundApiException". Wikia\Search\Query\Select has a method called "hasTerms" which tells us if the query is empty, basically.