<% if (!collection.find(function(model) {return model.selected == true;})) { %><%= page_title %><% } %> <% _.each(collection, function(post, i) { %> <% if (post.selected) { %><%= post.get('title') %><% } %> <% }); %>