title: How to determine if a model is empty in Razor View
body: <pre><code>@model IEnumerable&lt;Framely2011.Models.Frames&gt;
  
  @{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;p&gt;
      @Html.ActionLink("Create New", "Create")
  &lt;/p&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;/th&gt;
          &lt;th&gt;
              PictureID
          &lt;/th&gt;
          &lt;th&gt;
              UserID
          &lt;/th&gt;
      &lt;/tr&gt;
  
  @foreach (var item in Model)
  {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
              @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
              @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
          &lt;/td&gt;
          &lt;td&gt;
              @item.PictureID
          &lt;/td&gt;
          &lt;td&gt;
              @item.UserID
          &lt;/td&gt;
          &lt;td&gt;
              Meta 1: @item.MetaTagsObj.Meta1 Meta 2: @item.MetaTagsObj.Meta2 Meta 3: @item.MetaTagsObj.Meta3
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  
  &lt;/table&gt;
  </code></pre>
  
  <p>If the model comes up empty, how can I just get it to print "There are no Frames" so that none of the html table gets printed at all, I would think a simple <code>if</code> statement would suffice, but I am new to razor and I wasn't sure how I would go about doing this.</p>