I got it.
remove that check.
> +          if (result[i]) {