This handles situations, when the result is an array - this happens only on error from what I recall (including connection problems).