This should be defined inside the if-expression