Consider dropping the `else {` since there's a return in the `then` clause.