Add helper function for boolean setting.
Don't perform any actions on disabled providers.