<% if @user_cards.present? && !@user_cards.include?(card.id) %>
<%= yield %>
<% else %> <%= yield %> <% end %>