Use `from invenio.base.globals import cfg` for application configuration.
```
if cfg.get('DEPOSIT_CROSSREF_EMAIL') is None:
    ...
```