protected function checkUserRelation($recipient) { $initiator = Yii::$app->user->identity; $recipient = $this->checkUser($recipient); if (!Follow::findOneRelation($initiator, $recipient)) { throw new NotFoundHttpException('Follow Not Found.'); } return true; }