<% if(dataframe_has_rows(d) ) { -%>

Used in Example

<% } %>