Update index.js

Don't stop finding loop without values