title: MVEL - Any short elegant expression check if a list contains an object
body: <p>I am trying out MVEL and am pretty with new with it.</p>
  <p>I need to find if a list contains an object. I have come up with this expression. But it looks unwieldy and complicated.</p>
  <pre><code>List&lt;Person&gt; personList = List.of(new Person(&quot;Shantanu&quot;));
  Map&lt;String, Object&gt; context = Map.of(&quot;itemList&quot;,personList);
  
  String mvelExpression = &quot;for(person: personList) { if(person.name == 'Shantanu') return true;} return false;&quot;;
  </code></pre>
  <p>This works however it looks ungainly. Especially part of <code>return true</code> at the end. Without that there's NPE from MVEL.</p>
  <p>My question is whether my expression look correct? Also is there a better more elegant expression to do this kind of evaluation?</p>