@Override
    public boolean hasNext() {
      return current < len;
    }
Checks if the array has next element, stores reference to the current element and increments
cursor. This is required since an element may be removed between hasNext() and next() method
calls
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexElemArray.java