'Determine if iterator is exhausted.
Returns
bool
True if iterator has more items, False otherwise.
Note
Will never raise :exc:`StopIteration`.'

def has_next(self):

    return (self.peek() != self.sentinel)
