Personally I prefer to use a temporary variable - but it's not a deal breaker:
```
    if (not lat.is_contiguous()) or (not lon.is_contiguous()):
        msg = 'Currently need contiguous bounds to calculate area weights'
        raise ValueError(msg)
```