title: Drools rule to check for empty conditions in Collection for versions above 5.4.0
body: <p>Previously in Drools 5.1.1 version there was a privilege to check for empty conditions.</p>
  
  <p>For example if a variable of type Collection has no values in it and we want to write a condition for this check, we used to write like</p>
  
  <pre><code>variable.empty == true
  </code></pre>
  
  <p>This was a valid rule for Drools 5.1.1. But now when I try to do the same in version 5.4.0, it is not supported. I tried to search for some alternative but could not find one.</p>
  
  <p>Can someone help with this.</p>