code: public function isAuthorized()
      {
          $hasSession = Yii::$app->session->has($this->sessionParam);
          $sessionVal = Yii::$app->session->get($this->sessionParam);
          return ($hasSession && !empty($sessionVal));
      }
docs: check if current user authorized
  @return bool