add defined? rails