public function removeItemByIndex($index): ContainerInterface
    {
        if ($this->hasItem($index)) {
            $this->items[$index] = null; //prevente unset item.
            unset($this->items[$index]); //unset only index, not the item.
        }

        return $this;
    }
public function removeItemByIndex($index): ContainerInterface
    {
        if ($this->hasItem($index)) {
            $this->items[$index] = null; //prevente unset item.
            unset($this->items[$index]); //unset only index, not the item.
        }

        return $this;
    }
public function removeItemByIndex ( $ index ) : ContainerInterface { if ( $ this -> hasItem ( $ index ) ) { $ this -> items [ $ index ] = null ; //prevente unset item. unset ( $ this -> items [ $ index ] ) ; //unset only index, not the item. } return $ this ; }
Removes the child from the children list for the given index.

@param  mixed $index
@return \HOM\ContainerInterface
Removes the child from the children list for the given index .