I would just do an ``isset`` check here rather than calling ``$this->getSort($sort)`` and catching its exception. It should be a bit faster (catching exceptions has a higher cost in PHP) and does not change anything to the logic