nextIndex: function() {
            if (this.hasNext()) {
                this.index++;
                return this.index;
            } else {