Allows for empty `invalid` option