You don't need to perform all of these `if(...` checks. `_mapTag` does that for you already.