Wait, why can't you use a Map instead of two arrays (a Map being the data structure, not being your game map)?
The Map key would be the name of the map, while the Map's value would be the data?