Fix the if not block

Use of an if not block was creating syntactically incorrect JS.