docs: public synchronized boolean has(String name, Scriptable start) {
          if (isEmpty(name)) {
              return indexedProps.containsKey(name);
          } else {
              synchronized (context) {
                  return context.getAttributesScope(name) != -1;
              }
          }
      }