Fixing a quick PHP 5.3 scope issue