<% if @download.matches.any? %>

Similar

<% @download.matches.each do |match| %> <%= PostPresenter.preview(Post.find(match.post_id)) %> <% end %> <% else %>

Similar

No matches found

<% end %>