protected function findModel($id) { if (($model = UserProfil::findOne($id)) !== null) { return $model; } else { return null; } }