You can simplify this `if`/`else` by removing the `else` branch and directly `return`