Maybe you want to check if there is anything in the preflightHeaders and if not just return `HttpHeaders.EMPTY_HEADERS` to reduce the objects that needs to get generated.