Gimp.Item.prototype.is_valid

function is_valid(): Boolean {
    // Gjs wrapper for gimp_item_is_valid()
}
  

Returns TRUE if the item is valid.

This procedure checks if the given item is valid and refers to an existing item.

Since 2.8

Returns

Whether the item is valid.