public function removeCustomSetting($key) { if (is_array($this->customSettings) && array_key_exists($key, $this->customSettings)) { unset($this->customSettings[$key]); } }