'Checks if the ``element`` is in the subtree of ``self``
:param element: element
:type  element: :class:`UIElement`'

def contains(self, element):

    return (len(self.nearest((lambda x: (x == element)))) > 0)
