Yeah, that will obviously not work correctly. Thanks for noticing!
I do wonder if the code doesn't need to be slightly more complicated than your suggestion, since otherwise `[1 1 0]` would be erroneously classified as invalid. Something along these lines perhaps:
```
var isNegative = false;
var numNonNegative = 0;
var numZero = 0;
for (var i = 0; i < dashArrayLength; i++) {
  if (+dashArray[i] < 0) {
    isNegative = true;
    break;
  } else if (+dashArray[i] >= 0) {
    if (dashArray[i] === 0) {
      numZero++;
    }
    numNonNegative++;
  }
}
if (isNegative || numNonNegative === 0 || numNonNegative <= numZero) {
  data.borderWidth = 0;
}
```