check if a local variable 'myvar' exists,"if ('myVar' in locals()):