It's more obvious to just do 
```scala
if (other == null) {
} else {
}
```
then a pattern matching.