<div dir="ltr"><div><div>Been googling like nuts....in Nashorn, how do you do a  sanity check upfront if array is empty?<br><br></div>The examples here work great <a href="https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition">https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition</a><br><br></div>Accept we have for some attributes no values for users -- so array empty when it comes to the script calculation.<br></div>