Not sure why JsHint isn't catching this declaration inside a conditional either.