isdef - check variable existence
isdef(name) returns %T if the variable 'var-name' exists and %F otherwise.
isdef(name,'local') returns %T if the variable 'var-name' exists in the local environment of the current function and %F otherwise.
A=1;
isdef('A')
clear A
isdef('A')