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