public function unsetParam($key) { if (is_string($key) || is_integer($key)) { unset($this->params[$key]); } else { Logger::warn('$key has to be a string - unsetParam ignored!'); } return $this; }