public function removeChildByKey($index, $resort = true)
    {
        array_splice($this->children, $index, 1);

        if ($resort) {
            $this->flush();
        }

        return $this;
    }