If it exists is for a reason. And the reason is simple, if there is no **HOME** directory and valid the test will fail because the **Command** logic needs it. Thats way it needs to validate if the **ENV** variable exists.

They are not needed for composer, but they allow the user to add a different **HOME** path in a easy way.