If there is no payload, use null instead of an empty array.