apiv2 make sure to handle empty object