Check for the length of the JSON array before using

I've had panics after receiving an empty array from a subscription