How about an `np.isscalar` here?