protected static function arrays_intersect( array $array1, array $array2 ) {
		foreach ( $array1 as $value ) {
			if ( isset( $array2[ \spl_object_hash( $value ) ] ) ) {
				return true;
			}
		}

		return false;
	}
protected static function arrays_intersect( array $array1, array $array2 ) {
		foreach ( $array1 as $value ) {
			if ( isset( $array2[ \spl_object_hash( $value ) ] ) ) {
				return true;
			}
		}

		return false;
	}
protected static function arrays_intersect ( array $ array1 , array $ array2 ) { foreach ( $ array1 as $ value ) { if ( isset ( $ array2 [ \ spl_object_hash ( $ value ) ] ) ) { return true ; } } return false ; }
Determines whether two object arrays intersect. The second array is expected
to use the spl_object_hash for its keys.

@param array $array1 The keys are ignored.
@param array $array2 This array has to be in the form ( $spl_object_hash => $object ).

@return boolean
Determines whether two object arrays intersect . The second array is expected to use the spl_object_hash for its keys .