either always use `text.length` or `text !== ''`, chose one ;)