public function removePermission($permission) { if (array_key_exists($permission, $this->permissions)) { $permissions = $this->permissions; unset($permissions[$permission]); $this->permissions = $permissions; } return $this; }