Test If Variable Is Numpy Array Slicing