Looks like `PyArray_Check` should come before `PyArray_IsZeroDim(obj)`. Also, space after `if` and also before `{`.