public boolean hasNext() {
        return (this.index < this.endIndex);
    }
Returns true if there are more elements to return from the array.

@return true if there is a next element to return
jphp-runtime/src/php/runtime/common/collections/iterators/ObjectArrayIterator.java