Fixed debugging messages

Typo'd if(); meant the condition was ignored and the print_r() executed
anyways.