How to check whether the flex array is not empty

We can check by using array length.
ie. array.length > 0