public boolean hasNext() {
        lockChain();
        updateCurrentIterator();
        lastUsedIterator = currentIterator;

        return currentIterator.hasNext();
    }
Return true if any Iterator in the IteratorChain has a remaining element.

@return true if elements remain
jphp-runtime/src/php/runtime/common/collections/iterators/IteratorChain.java