```python
Check if progress bars are disabled globally or for a specific group.

This function returns whether progress bars are disabled for a given group or globally.
It checks the `HF_HUB_DISABLE_PROGRESS_BARS` environment variable first, then the programmatic
settings.

Args:
name (`str`, *optional*):
The group name to check; if None, checks the global setting.

Returns:
`bool`: True if progress bars are disabled, False otherwise.
```