Nit: please move the `else` up to the previous line, i.e. `} else {`.