public function includePage(User $user) { return $this->item($user, function ($user) { if ($user->userPage !== null) { return ['html' => $user->userPage->bodyHTML, 'raw' => $user->userPage->bodyRaw]; } else { return ['html' => '', 'raw' => '']; } }); }