Maybe this is easier to read as:
```
if (query.length <= 1 || !regInfo ||
        (regInfo[1] && isNaN(regInfo[1])) || (regInfo[3] && isNaN(regInfo[3]))) {
```
Or in one line, to group the second or in one line.