return empty object instead of empty array, if no attributes are available