When the value of an env var is an empty string, the ternary operator here will consider the empty string a falsy value, resulting in the variable not being replaced.
If we specifically test for undefined (like here), the empty string will be preserved and only missing env variables would be discarded.