converted array comprehension to flat array in zendesk script