Correct input multiple flag

Allow the input multiple only if the options multiple is set to true in the options.