title: check the last element of the object array in the list
body: <p>I have the list <code>eventsLogs</code> of type <code>List&lt;Object[]&gt;</code> below  how can I check the last element of the object(last element in the array)  in the list?</p>
  
  <pre><code>def eventLogs = queryHelper.query(query, 
  ["organization":organization, 
  "fromDate":startDate, 
  "toDate":endDate], 0);
  </code></pre>