Definitely, you would have something like:

{
'EPSG:28992': true,
'EPSG:4326': true
}

This is done in the WMS Capabilities reader e.g., but only because there can be a lot of entries and Arrays are slower in that case.