Fixes

It's useless in PHP because in the if and the else you define the variable. So it will always exists, defining it before is useless.

But i can readd it if you want it for readability.