public function getCurrentUserProperty($property) { $currentuser = $this->getCurrentUser(); return isset($currentuser[$property]) ? $currentuser[$property] : null; }