(self, chain)
Returns *True* if *chain* exists as a chain.
Returns *True* if *chain* exists as a chain.
Returns * True * if * chain * exists as a chain .
def is_chain(self, chain):
        """Returns *True* if *chain* exists as a chain."""
        if isinstance(chain, Chain):
            chain = chain.name
        if self._iptc.iptc_is_chain(chain.encode(), self._handle):
            return True
        else:
            return False
def is_chain ( self , chain ) : if isinstance ( chain , Chain ) : chain = chain . name if self . _iptc . iptc_is_chain ( chain . encode ( ) , self . _handle ) : return True else : return False