protected function ungracefulExit($beginning_with, $tree_data)
    {
        if ($beginning_with == count($tree_data)) {
            throw new \Exception('This tree has some missing parent items: ' . print_r($tree_data, true));
        }
    }