nit: "else if" is more intuitive to read to me.