def METHOD_NAME(self, slaves: list, single: bool) -> bool:
    """Validate if the received data is valid for the client.
    :param slaves: list of slave id for which the transaction is valid
    :param single: Set to true to treat this as a single context
    :return:
    """
    if single:
        return True
    if 0 in slaves or 0xFF in slaves:
        # Handle Modbus TCP slave identifier (0x00 0r 0xFF)
        # in asynchronous requests
        return True
    return self._header["uid"] in slaves