set(optionsArray) improvements