method for iter objects test if an iterator has any more values to go
## S3 method for class 'iter' hasNext(obj)
obj
an iterator