PHP's if statements do not have their own scope

https://stackoverflow.com/questions/4110340/variable-scope-issue-with-if-statements-php