shouldn't this alert when $type == 'subcat' && (is_string($this->nextPage) || is_string($this->from)) ?