If statement simplification.