protected function has_changes( array $changes, $attributes = null ) {
		if ( empty( $attributes ) ) {
			return count( $changes ) > 0;
		}

		foreach ( (array) $attributes as $attribute ) {
			if ( array_key_exists( $attribute, $changes ) ) {
				return true;
			}
		}

		return false;
	}