I'll be changing `mask` at each iteration, so it's either `mask.any()` or `np.nonzero` iterative computation.