Check if the given name exists in the current collection.
True if found, false otherwise
JavaScriptCollection Class | TallComponents.PDF.JavaScript Namespace