This functionality is only available for certain module packages.

existsDocumentRef(String absoluteName)

Checks if the document (e.g. a diagram) given by absoluteName exists. If the parent component, which contains the document, is disabled, the value false is returned.

existsDocumentRef(String absoluteName)
Arguments String absoluteName The absolute path to the document
Return value Boolean