nit: `} else if ( ...`