This detects if $DISPLAY is configured, and enables or disables CHROME_HEADLESS unless defines.
$DISPLAY
CHROME_HEADLESS