You are correct. I didn't internalize that the body of an if statement is still top-level scope.