use `inRange()` util method in `isInsideBox()`