If you see the rest of the function, you see that there are other checks against collisionType that trigger a different code path. These checks are necessary.