presto-main/src/main/java/io/prestosql/execution/scheduler/ResettableRandomizedIterator.java/ResettableRandomizedIterator/hasNext
class ResettableRandomizedIterator:    @Override
    public boolean hasNext()
    {
        return position < list.size();
    }