public function removeGroup($group) { if (($key = array_search($group, $this->groups)) !== false) { unset($this->groups[$key]); } }