title: CodeIgniter - How to check if there is anything in the validation_error array
body: <p>I'm wanting to display a general error message if there are any errors in the <code>validation_errors()</code> array, but if I do something like</p>
  
  <pre><code>if(isset(validation_errors())) { echo 'error'; }
  </code></pre>
  
  <p>then it returns back and says:</p>
  
  <blockquote>
    <p>Fatal error: Can't use function return value in write context</p>
  </blockquote>
  
  <p>Any help would be grand.</p>