Isn't it more readable

```sh
if gpg-agent
then
   ....
fi
```
?

Also, this one won't export the environment variables, will it?