BF: fix isinstance check to use ndarray

The isinstance check was using np.array as the array class, but the
class is np.ndarray