Check if the environment variable is set

This is specially useful for dashboards as they can
set it to whatever is required
Fixed dashboard configs
Merge remote-tracking branch 'devel/optout' into devel-master

* devel/optout:
  Fixed dashboard configs
  Check if the environment variable is set