You can refactor this as:

      if type
        name = ContactType.find(type).name
        name.blank? ? label : name
      else
        label
      end

It's just a matter of style.