check if a global variable `myvar` exists,('myVar' in globals())