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;
    }