inBounds() check