nit: some will say that you want a strict equality check for lenght.