Redundant "if" in StateManager.preUpdate method