This seems to come up a bit so you might want to create a little function to do this test.  That or use numpy's `np.atleast_1d()`