Ruby 1.9 doesn't support #to_h so do || {}.