Misc fixes after review

- Fix hasLength -> hasText