human
check if a variable exists
assistant
Here is some code to check if a global variable `myVar` exists

('myVar' in globals())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.