title: GSP: check if model (variable) is empty not working
body: <p>Im new to grails (1.3.7) and Im trying to get something to work:</p>
  
  <p>In my controller, I give back a few lists which I want to access in my gsp. Accessing works, but I only want to access them if they are not empty. The check if a list is empty or not does not work.</p>
  
  <p>Here is what my controller gives back:</p>
  
  <p><code>return new ModelAndView("/questions/questions", [ questionsList101 : allQuestions101, questionsList102 : allQuestions102, ... ])</code></p>
  
  <p>allQuestions-objects are "def allQuestions.." containing Questions-Objects (Database-Object)</p>
  
  <p>on my gsp now I try the following:</p>
  
  <pre><code>&lt;g:if test="${!empty questionsList101}"&gt;  101:&lt;br/&gt;
  &lt;g:each in="${questionsList101}" var="elem" status="i"&gt;
    &lt;g:checkBox name="${questionsList101[i].id}" value="${questionsList101[i].id}"/&gt;${questionsList101[i].id}&lt;br/&gt;
  &lt;/g:each&gt;
  &lt;br/&gt;
  &lt;/g:if&gt;
  </code></pre>
  
  <p>the loop is working, the check for emptiness is not. I tried with "not empty", "!empty", ... dont know whats wrong! any help is apreciated! :-)</p>