Function isNonEmptyArray