code: def is_fw_present(self, fw_id):
          
          if self.fw_id is None or self.fw_id != fw_id:
              return False
          else:
              return True
docs: Returns if firewall index by ID is present in dictionary.