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