code: def is_match(self, command):
          
          if command.output is None and self.requires_output:
              return False
  
          try:
              with logs.debug_time(u'Trying rule: {};'.format(self.name)):
                  if self.match(command):
                      return True
          except Exception:
              logs.rule_failed(self, sys.exc_info())
docs: Returns `True` if rule matches the command.
  
          :type command: Command
          :rtype: bool