% unless @collection_options.empty? && available_profiles.blank? %> <% modal_id = "#{document.noid}-modal" %>