protected function matchByProperty(
		MatchUrlComponentAnnotation $annotation,
		Parser $parser,
		$property,
		$component = null
	) {
		// Not specified means match anything.
		if ( !isset($annotation->$property) ) {
			return true;
		}

		return $parser->getComponent(isset($component) ? $component : $property) === $annotation->$property;
	}