Whether get finds a node for nameOrIndex.
nameOrIndex
bool has(Object nameOrIndex) => get(nameOrIndex) != null;