If 'configuration.room' is a falsy value (zero, false, empty list...) it will return false and then define room as 'default room', that's wrong. It's better to check explicitly that 'room' is not defined on the configuration object.