private function unsetData($name, array $definitions) { if (array_key_exists($name, $this->groups)) { unset($this->groups[$name]); foreach ($definitions as $handle => $definition) { unset($this->fields[$handle]); } } }