Update isset.js

changing loop method to shorten code :)