You could simply make this:

```
bad_dims = [dim for dim in dims if dim not in self.coordinates]
if bad_dims:
    raise ValueError
```