has_layer

has_layer()

Returns true if the document has at least one layer :return: True if the document has at least one layer :rtype: [bool]