static boolean equalsElem(Object elem1, Object elem2) {
		if (elem1 == null) {
			if (elem2 == null) {
				return true;
			}
		} else {
			if (elem1.equals(elem2)) {
				return true;
			}
		}
		return false;
	}
Helper function to check two elements stored in the list for equality.

@param elem1	first element
@param elem2	second element
@return		true if the elements are equal, otherwise false
jphp-runtime/src/php/runtime/memory/support/IList.java