``any`` is equivalent to ``not all(~wrap_around)``. The logic of the statement in the code differs from what you suggest:

```python
>>> t = (False, False)
>>> not all(t)
True
>>> any(t)
False
```

(And keep in mind that ``wrap_around`` is a tuple/list, not an ndarray.)