Short-circuit evaluation of boolean expressions