add support for Ruby 2.0 when instance variable not exists