def METHOD_NAME(self, data):
    """Check if the data contains binary components."""
    if isinstance(data, bytes):
        return True
    elif isinstance(data, list):
        return functools.reduce(
            lambda a, b: a or b, [self.METHOD_NAME(item)
                                  for item in data], False)
    elif isinstance(data, dict):
        return functools.reduce(
            lambda a, b: a or b, [self.METHOD_NAME(item)
                                  for item in data.values()],
            False)
    else:
        return False