How can I check if Html.ValidationSummary() has any errors?

Ultimate result required:

<% if(I_HAVE_ERRORS) {%>
<div><%= Html.ValidationSummary() %></div>
<%}%>

In other words, how can I determine "I_HAVE_ERRORS"?

Edit
Report