public function add($name, $value) { if (isset($this->data[$name]) && is_array($this->data[$name])) { $value = array_replace_recursive($this->data[$name], $value); } $this->data[$name] = $value; }