hasTag()
Use this method to check whether a feature with a given tag exists in a list. The hasTag method returns true if the list contains a model entity with the given tag.
boolean hasTag(String tag);
As an example, this code checks if a block has the tag blk1, and if it does not exists, creates such a block:
boolean isBlockExists = model.geom("geom1").feature().hasTag("blk1");
if (!isBlockExists) {
model.geom("geom1").feature().create("blk1", "Block");
}