So it seems that check for "$this->actionName !== 'edit'" is not needed (because of the unset in the method above).