`.select { |c| c[:name] == name.to_s }.first` can be replaced with `.find { |c| c[:name] == name.to_s }`