The idea of the (extra) condition is that if something requires extra computation, it can be skipped.  position and acceleration don't need extra computation and could be outside the if-condition.