how can I test for the existence of an array key in storage?

I need to fix a hole I've dug myself into with an array which is set in storage 

setValue("data" array[0])

how can I detect or manage an "Array Out Of Bounds Error" when trying to reference data[3] in my glance view when it's not been set yet?

isset doesn't exist in connectIQ so how do I do it?

Thanks

Lee