Use hasLength rather than hasText