def has_key(self, key):
        """
        Case insensitive test whether 'key' exists.
        """
        k = self._lowerOrReturn(key)
        return k in self.data

        Case insensitive test whether 'key' exists.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/util.py