Is it worth doing this on an if?
We defend against anything being run in the JS, and if something is run, nothing will happen. Just a thought.