protected function elementIsTargetLink(NodeElement $element, string $link_text): bool
    {
        $current_item_name = strtolower($element->find('css', '.ab-item')->getText());

        switch (strtolower($link_text)) {
            case 'wordpress':
                $is_link = $element->getAttribute('id') === 'wp-admin-bar-wp-logo';
                break;
            case 'updates':
                $is_link = $element->getAttribute('id') === 'wp-admin-bar-updates';
                break;
            case 'comments':
                $is_link = $element->getAttribute('id') === 'wp-admin-bar-comments';
                break;
            default:
                $is_link = strtolower($link_text) === $current_item_name;
        }

        return $is_link;
    }