if (@array2) { # array2 is not empty } else { # array2 is empty } #### if (@array2 > 3) { # array2 has more than three elements }