The code might be more compact if you used a one-line syntax for arrays, such as `key: ["value1", "value2", etc]`. You could use a join instead of looping on values.