check if a local variable `myVar` exists,('myVar' in locals())