Checks if this is the main request.
public function isMainRequest() : bool { return HttpKernelInterface::MAIN_REQUEST === $this->requestType; }