I think 'room' is not required. that there is a need to ensure that the 'data' is not undefined.