<% if content_for? :foo %> <%= yield_content :foo %> <% end %>