function remove(FormControl $target) { // Strictness will skip recursiveness, else you get an exception (recursive dependency) unset($this->controls[array_search($target, $this->controls, true)]); }