How can I check to see if a variable has been defined

Original text of this message