optionToArray(val, []) did not work for some reason