Be careful when applying a function to an if expression.