I did it this way since we're explicitly testing the length of something, and this is more clear. If there's a strong preference for the other way, I'd be happy to make the change.