Python Check If Variable Is Numpy Array