private function isAdmin() { if ($this->isAdminUser === null) { $this->isAdminUser = $this->currentUser()->id !== null ? $this->currentUser()->hasRole('admin') : false; } return $this->isAdminUser; }