prefer new Map() syntax
short circuit has/forEach/get if map is empty