public function hasAuthRole($authRole) { if (in_array($authRole, $this->authRoles)) { return true; } else { return false; } }