public function remove($object) { if ($object instanceof TransparentViewContainer) { if ($this->arrChildContainers) { $pos = array_search($object, $this->arrChildContainers, true); if ($pos !== false) { unset($this->arrChildContainers[$pos]); } } } else { parent::remove($object); } }