Use defined? to check for instance variables