treat as batch request if the request is an array