can be just `if($this->ajaxType)`