VB Code:
  1. If (Not ArrayName) = True Then
  2.     'the array is empty, you get an error if you use UBound or LBound
  3. Else
  4.     'the array has items, you can use LBound and UBound
  5. End If