can you be sure that the variable passed into this function as `body` here is an object? otherwise this code will throw an exception