Added early return to removeGlobals.
Fixed initial comment.