def has_item(self,jid,node=None):
l=self.xpath_ctxt.xpathEval("<STR_LIT>")<EOL>if l is None:<EOL><INDENT>return False<EOL><DEDENT>for it in l:<EOL><INDENT>di=DiscoItem(self,it)<EOL>if di.jid==jid and di.node==node:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Check if `self` contains an item.

        :Parameters:
            - `jid`: JID of the item.
            - `node`: node name of the item.
        :Types:
            - `jid`: `JID`
            - `node`: `libxml2.xmlNode`

        :return: `True` if the item is found in `self`.
        :returntype: `bool`