Just do 

```python
if not arrays_and_dtypes:
    raise ValueError("your message")
```
Creating an iterator and catching `StopIteration` is a bit overkill.