`PyArray_ISBOOL(self)` would be better.