code: def filter_dependencies(self):
          '''
          Determine whether a check has dependencies.
          '''
          dependencies = self.event['check'].get('dependencies', None)
          if dependencies is None or not isinstance(dependencies, list):
              return
          for dependency in self.event['check']['dependencies']:
              if not str(dependency):
                  continue
              dependency_split = tuple(dependency.split('/'))
              # If there's a dependency on a check from another client, then use
              # that client name, otherwise assume same client.
              if len(dependency_split) == 2:
                  client, check = dependency_split
              else:
                  client = self.event['client']['name']
                  check = dependency_split[0]
              if self.event_exists(client, check):
                  self.bail('check dependency event exists'f filter_dependencies(self):
          '''
          Determine whether a check has dependencies.
          '''
          dependencies = self.event['check'].get('dependencies', None)
          if dependencies is None or not isinstance(dependencies, list):
              return
          for dependency in self.event['check']['dependencies']:
              if not str(dependency):
                  continue
              dependency_split = tuple(dependency.split('/'))
              # If there's a dependency on a check from another client, then use
              # that client name, otherwise assume same client.
              if len(dependency_split) == 2:
                  client, check = dependency_split
              else:
                  client = self.event['client']['name']
                  check = dependency_split[0]
              if self.event_exists(client, check):
                  self.bail('check dependency event exists')
docs: Determine whether a check has dependencies.