Couldn't this just be:

```
!isDefined(value.length) || value.length >= minlength
```