shouldn't this be `$this->request->isAjax()`? Otherwise `$request` doesn't exist?