def __bool__(self):
        """Return True if there's at least one item."""
        ### if iteration is performed, return True
        for _ in self.callable_obj():
            return True

        ### if no iteration was performed, though, it means
        ### there are no items, so we return False
        return False
Return True if there's at least one item.
nodezator/classes2d/collections.py