protected function isAncestors($id)
    {
        $ancestors  = $this->ancestors;
        $baseParent = $this->getAncestors($this->currentPage);
        if (is_array($baseParent) && !empty($baseParent)) {
            $ancestors = array_merge($ancestors, $baseParent);
        }

        return in_array($id, $ancestors);
    }