public boolean exists(String value) {
        if (!isEmpty()) {
            ListElement current = head;
            while (current != tail.next()) {
                if (current.getValue().equals(value)) {
                    return true;
                }
                current = current.next();
            }
        }
        return false;
    }