This default value of `map` can be set at instantiation `var map = {};`, and no need for an `else`