Override the built-in logic to detect whether an option is disabled
An example can be found in the /advanced#replacing-builtins documentation.