public function removeElement($name) { if ($this->hasElement($name)) { unset($this->elements[$name]); } return $this; }