public function removeItem(string $name, $removeChildren = true)
    {
        if ($removeChildren) {
            if ($item = $this->getItem($name)) {
                $item->children()->each(function ($item) {
                    $this->removeItem($item->name);
                });
            }
        }

        return $this->items->remove($name);
    }