Since this is being treated as a `Number` in the following implementation you should make sure `minlength` will always be set to an integer. Your check here will set it to any truthy value.

Consider changing this to something like `minlength: parseInt(options.minlength, 10) or 1`