Instead of creating a dummy object, do something like this on init:

`if(process) prerender.prerenderToken =  process.env.PRERENDER_TOKEN;`

And then use `this.prerenderToken` everywhere else instead of checking both. That will clean up the dummy obj and the checks for those variables everywhere.