cast is_enabled to bool