Fix check for `ENV`