Please break this into multiple lines for readability sake.

Also, it seems you have a typo. You check `onTileMapLoaded` (singular) but use `onTileMapsLoaded` (plural).