I'd rename $value to $enabled. That way, setting a bool makes clearer sense.