public boolean exist(ValueType value) {
        if (!this.isEmpty()) {
            SetElement<ValueType> help = head;
            while (help != tail.getNext()) {
                if (help.getValue() == value) {
                    return true;
                }
                help = help.getNext();
            }
            return false;
        } else {
            return false;
        }
    }