I'm pretty sure it's okay here. `if` statements don't create new scope IIRC.