validate($value)) throw new \Exception("Only boolean values are accepted to this setting"); update_option("_ACTIONWEAR_SUPPLIER_AVAILABILITY", (bool) $value === true ? 1 : 0); if ((bool) $value === false) { delete_option("_ACTIONWEAR_SUPPLIER_TYPE"); } ; return $this->get(); } } }