Scala style: use braces for the multi-line if-else, as in the `create` method.