The umpire has to decide whether the ball hits the batter while in the box. If so, it is a foul ball.