def __bool__(self):
        if self._result_cache is not None:
            return bool(self._result_cache)
        try:
            next(iter(self))
        except __HOLE__:
            return False
        return True
dataset/ETHPy150Open robgolding63/tasklib/tasklib/task.py/TaskQuerySet.__bool__