Minor alternative:

```scala
Option(role).filterNot { _.isEmpty }
```