How can I make a better use of this method? - RUBY (raw) :   def proficiency_parser(stored_data, name, race, year, title, percentage)
    if stored_data.has_key?(name)
      if stored_data[name].has_key?(race)
        if stored_data[name][race].has_key?(year)
          stored_data[name][race][year][title] = percentage
        else
          stored_data[name][race][year] = {title => percentage}
        end
      else
        stored_data[name][race] = {year => {title => percentage}}
      end
    else
      stored_data[name] = {race => {year => {title => percentage}}}
    end
  end

  def determinate_percentage(data)
    data = "N/A" if data == "N/A"
    else data.to_f
  end