Corrected logic fail on whitelisted terms
PHP v5.4 compat
Commenting and fix bad conditional
Make redirection filterable