in reply to Do I need to use defined?

See also Checking Variable for Not Null where this was discussed previously.