This is the pattern we usually use

```sh
version_file=$(rbenv-version-origin || true)
if [ -n "$version_file" ]; then
  # ...
```