public function prepare_rules( array $rules, $property = null ) {
		if ( ! isset( $rules['relation'] ) ) {
			$rules['relation'] = 'OR';
		} else {
			$rules['relation'] = strtoupper( $rules['relation'] );
		}

		foreach ( $rules as $index => $value ) {
			if ( is_string( $index ) ) {
				continue;
			}

			if ( is_array( $value ) ) {
				$rules[$index] = new Papi_Core_Conditional_Rule( $value );

				if ( strpos( $rules[$index]->slug, '.' ) === false && papi_is_property( $property ) ) {
					$rules[$index]->slug = $this->get_rule_slug(
						$rules[$index],
						$property
					);
				}
			}
		}

		return $rules;
	}