public function htmlify(
        AbstractPage $page,
        $addClassToLi = false,
        $iconPosition = self::ICON_PREPEND,
        $isLast = false
    ) {
    
        // Render elements
        $this->setupAttributes($page, $addClassToLi, $isLast);
        $icon  = $this->renderIcon($page);
        $label = $this->renderLabel($page);

        // Build html
        $content = $this->renderContent($icon, $label, $iconPosition);
        if ($page->hasPages() && !$isLast) {
            $content .= ' <b class="caret"></b>';
        }

        // Finish html
        return $this->renderElement($content);
    }