This has been discussed before. As a workaround, You can declare global vars and then test with IsDeclared().

I vote for the new function to be called IsDefined() keeping true to the D in UDF.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.