title: MVC3 Razor: how to check if model is empty
body: <p>I have tried using !Model.Any() it doesn't work, since model has no extension Any. How to solve?
  Here is my code snippet.</p>
  
  <pre><code>    @model MyModel.Work
      @if ( !Model.Any() )
      {
         &lt;script type="text/javascript"&gt;
               alert("Model empty");
         &lt;/script&gt;
      }
      else
      {
         &lt;script type="text/javascript"&gt;
                alert("Model exists");
         &lt;/script&gt;
      }
  </code></pre>