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;
	}
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;
	}
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 ; }
Determine if the given attributes were changed.

@param  array             $changes    An array attributes was change.
@param  array|string|null $attributes Optional, the attribute(s) for determine.
@return bool
Determine if the given attributes were changed .