Replace `empty($_REQUEST['ajax_page_request'])` with `! $request->has('ajax_page_request')` to use the injected ServerRequest consistently. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>