numpy.ndarray.__bool__

method

ndarray.__bool__(/)

True if self else False