nit: `else` after closing curly bracket