code: def get_related(self):
          
          # Fresh start
          self.related = False
          try:
              for interface in self.interfaces:
                  if relation_ids(interface):
                      self.related = True
              return self.related
          except AttributeError as e:
              log("{} {}"
                  "".format(self, e), 'INFO')
              return self.related
docs: Check if any of the context interfaces have relation ids.
          Set self.related and return True if one of the interfaces
          has relation ids.