code: def _interface_exists(self, interface):
          
          ios_cfg = self._get_running_config()
          parse = HTParser(ios_cfg)
          itfcs_raw = parse.find_lines("^interface " + interface)
          return len(itfcs_raw) > 0
docs: Check whether interface exists.