When "array" is not a NumPy array, don't handle it as a NumPy array.