public static boolean isArrayEqual(Object[] array1, Object[] array2) {
		if (array1 == null) {
			return (array2 == null);
		}
		if (array2 == null) {
			return false;
		}
		if (array1.length != array2.length) {
			return false;
		}
		for (int i = 0; i < array1.length; i++) {
			if (!isEqual(array1[i], array2[i])) {
				return false;
			}
		}
		return true;
	}
Returns whether or not the two indicated objects are equal. It allows
either or both of the specified objects to be null.

@param o1 the first object or null
@param o2 the second object or null
@return true if the objects are equal.
Ghidra/Framework/Utility/src/main/java/ghidra/util/SystemUtilities.java