public static function check( array $fields, array $data ) {
		$dependency = new static( $data );

		foreach ( $fields as $field ) {
			if ( ! $field->get_option( 'deps' ) ) {
				continue;
			}

			$satisfied = $dependency->apply(
				$deps = $field->get_option( 'deps' )
			);

			$field->set_option( 'row_attributes',
				$field->get_option( 'row_attributes' ) + [
					'data-deps'      => esc_attr( json_encode( $deps, JSON_HEX_APOS ) ),
					'data-satisfied' => $satisfied ? 'true' : 'false',
				]
			);

			$field->set_option( 'active', $satisfied );
		}
	}