added static function to check if provider is enabled