Checks whether name is a valid bond option and value is a valid value for the name.
name
value
If value is null, the function only validates the option name.
the name of the option to validate value (allow-none): the value of the option to validate.
true, if the value is valid for the given name. If the name is not a valid option, false will be returned.