<dl>
  <% @masterFiles.each do |section| %>
    <dt><%= section.display_title %></dt>
    <% next if section.supplemental_files.blank? %>
        <% section.supplemental_files.each do |file| %>
          <dd><%= link_to file.label, master_file_supplemental_file_path(master_file_id: section.id, id: file.id) %></dd>
        <% end %>
    <% end %>
</dl>

<dl>
  <% @masterFiles.each do |section| %>
    <% next if section.supplemental_files.blank? %>
      <dt><%= section.display_title %></dt>
      <% section.supplemental_files.each do |file| %>
        <dd><%= link_to file.label, master_file_supplemental_file_path(master_file_id: section.id, id: file.id) %></dd>
      <% end %>
    <% end %>
</dl>

Remove section title in files tab when there are no files
Remove section title in files tab when there are no files
