JSLint is not passing this as a valid code:
/* global someVar: false */ if (typeof someVar === \"undefined\") { var someVar = \"hi!\"; }
if (typeof someVar === "undefined") { var someVar = "hi!"; }
will check if someVar (local or global) is undefined.
someVar
If you want to check for a global variable you can use
if(window['someVar'] === undefined) { ... }
assuming this is in a browser :)