<% if !@files.empty? %> <% for item in @files %>
<%= item['filename'] %>
<% end %> <% else %>
Nothing here
<% end %>