The else block references the `p` variable from the if scope, so it has to be in the else to have access to it.