def _check_term_threshold(self):
index = self.__index__()<EOL>layer = self.__layer__ or '<STR_LIT>'<EOL>pattern = r'<STR_LIT:|>'.join(index) if isinstance(index, tuple) else index<EOL>iterable = self._exproto if isinstance(self._exproto, tuple) else (self._exproto,)<EOL>layer_match = re.fullmatch(layer, self._exlayer, re.IGNORECASE)<EOL>protocol_match = filter(lambda string: re.fullmatch(pattern, string, re.IGNORECASE), iterable)<EOL>return bool(list(protocol_match) or layer_match)<EOL>
Check if reached termination threshold.