As long as you are cleaning up extraneous parentheses, you might as well get rid of the pair around `np.any(...)`.