title: Check if (partial) view exists from HtmlHelperMethod
body: <p>Does anyone know if it's possible to check if a partial view exists from within an HtmlHelperExtension?</p>
  
  <p>I know it's possible from a controller using the following:</p>
  
  <pre><code> private bool ViewExists(string name)
   {
       ViewEngineResult result = ViewEngines.Engines.FindView(ControllerContext, name, null);
       return (result.View != null);
   }
  </code></pre>
  
  <p>Source: <a href="https://stackoverflow.com/questions/946990/does-a-view-exist-in-asp-net-mvc">Does a View Exist in Asp.Net MVC?</a></p>
  
  <p>But you can't do the above in a helper, as you don't have access to the controller context. Any thoughts on how to do this?</p>