Ah I see - well then since your'e just doing what's there already I guess it's fine. But if you want to be a true hero, I think something like this would work:
```
import scala.util.Try
import scala.sys.process._
val hasPrintEnv = Try(Process("printenv")!!).isSuccess
```