You might as well just use `(a == a.astype('bool')).all()` and ditch the other assert below this.