return empty object for empty rest responses