remove unused variable isNode from checkGlobals