Arrays in logstash

Hi,

How do I use arrays in conditionals in logstash?

I want to do the following:

if array[1] is not empty {
     mutate { .... }
}

Where array is created by using mutate split.

Thanks,

James

Assuming it's an array of strings this should work:

if [array][1] != "" {