':rtype: bool'

def hasNext(self):

    while self.__depth:
        (nestedList, i) = self.__depth[(-1)]
        if (i == len(nestedList)):
            self.__depth.pop()
        elif nestedList[i].isInteger():
            return True
        else:
            self.__depth[(-1)][1] += 1
            self.__depth.append([nestedList[i].getList(), 0])
    return False
