nit: since the last line in previous scope is a return statement, we can omit that `else`.