shouldn't this be `$this.val().length <= 0` or `!!$this.val().length`?