Why not check for an empty string the idiomatic way?

```python
if provided_products:
    entitlement_ext['providedProductsFormatted'] = provided_products
else:
    entitlement_ext['providedProductsFormatted'] = _('Not Applicable')
```