public function getChild(int $index) : Node
    {
        if (!isset($this->children[$index])) {
            throw new AegisError('Could not get child from node, because there\'s no child at index '.$i);
        }

        return $this->children[$index];
    }