public function getParents($includeSelf = true)
    {
        $parents = [];

        if (null !== $this->parent) {
            $parents = $this->getParent()->getParents();
        }

        if ($includeSelf) {
            $parents[] = $this;
        }

        return $parents;
    }