A better way to write this pattern in Scala is:

```
Brand.find(brandCode).map { brand =>
  …
}.getOrElse(NotFound("Unknown brand"))
```

because then you have a `Brand` instead of an `Option[Brand]`, so you don’t have to do `brand.get`