def is_valid(self): ''' Check if the current iterator is valid. :returns: True if the iterator is valid, False otherwise ''' return LDB.leveldb_iter_valid(self.iterator)