def has_subfolders(self, trans=None):
     """
     Checks if the container has at least one child container.
     
     @param trans: A valid transaction handle
     @rtype: bool
     """
     conditions = (('_parentid', self._id), ('isCollection', True))
     return _db.test_join(conditions, trans)
 def has_children(self, trans=None):
     """
     Checks if the container has at least one non-container child.
     
     @param trans: A valid transaction handle
     @rtype: bool
     """
     conditions = (('_parentid', self._id), ('isCollection', False))
     return _db.test_join(conditions, trans)
 def child_exists(self, name, trans=None):
     """
     Checks if a child with the specified name is contained
     in the container.
     
     @param name: The name of the child to check for
     @type name: str
     
     @param trans: A valid transaction handle
         
     @rtype: bool
     """
     conditions = (('_parentid', self._id), ('displayName', name))
     return _db.test_join(conditions, trans)