Check the mapped key exists before mapping