public boolean listEntry(int value) {
        ListElement current = head;
        while (current != tail.next) {
            if (current.value == value) {
                return true;
            }
        }
        return false;
    }