Good point.  I didn't catch that.  Probably should be `not isinstance(out, np.ndarray)` -- but maybe @mhvk had a good reason for not doing that.