protected function setEnv(
        /*# string */ $key,
        /*# string */ $val,
        /*# bool */ $overload
    ) {
        if ($overload || false === getenv($key)) {
            // set env
            putenv("$key=$val");

            // also populate $_ENV
            $_ENV[$key] = $val;
        }
    }