paper.isDefined(graphicalObjectId)
Return true if there is a graphical object (gradient, filter, marker) with graphicalObjectId already defined within the paper. Return false otherwise.
true
graphicalObjectId
false