14-17x faster than using numpy.any/all, syntactically sweeter than numpy.logical_or/logical_and, trivial implementation.