nit: `} else {`