You can use _.every instead of a for loop here.

var error = !_.every($remote, function (remote) {
 if ($remote[i].value =="http://" || $remote[i].value ==" ") {
  return false;
}
});