added mapArrayKeyWithDefaults as Pablo suggested