Coding style
impersonate.php:14-16 -- Choose a side for logical operators to go on (I prefer end of line), but don't mix between end of line (:14) and beginning of line (:16), even when the scope is different as it is in this case - the indent shows that anyway.