Truth value testing and the built-in operation bool
x.__bool__() <==> bool(x)
Examples:
>>> bool(Data(1))True>>> bool(Data([[False]]))False>>> bool(Data([1,2]))ValueError: The truth value of Data with more than one element is ambiguous. Use d.any() or d.all()