I call a third party function that returns an array. I dimension the array to zero elements before calling the function. However, occasionally the function returns an array with no upper or lower bound (similar to creating a modular level dynamic array). How can I check for this situation without using an error handling routine? I currently check the array's UBound, but on this occurrence a 'subscript out of range' occurs. Code snippet shown below:

Code:
    'Reset the sensor id byte array.
    ReDim bytSensorID(0) As Byte
    
    'Determine if the device has been initialized.
    If mboolInitialized Then
        'Device has been initialized.
        '   Request the sensor id information.
        bytSensorID = mobjSATTester.getSensorIDByteArray()
        'This statement errors on occasion with subscript out of range
        lngUpperBound = ubound(bytSensorID)