src/Saver/Saver.php
protected function has_changes( $old, $new ) {

		foreach ( $new as $key => $value ) {
			if ( $value !== $old[ $key ] && ! $this->numerically_equivalent( $value, $old[ $key ] ) ) {
				return true;
			}
		}

		return false;
	}
protected function has_changes( $old, $new ) {

		foreach ( $new as $key => $value ) {
			if ( $value !== $old[ $key ] && ! $this->numerically_equivalent( $value, $old[ $key ] ) ) {
				return true;
			}
		}

		return false;
	}
Check if there are changes.

@since 2.0

@param array $old
@param array $new

@return bool