is that this API call in the past has returned # a JSON hash rather than an array in some cases; in other cases # it has returned an empty JSON array if (my $ref = $resp->shift) { return spr