Minor micro-optimization on IF statement