def is_png(data: bytes) -> bool:
    """
    Check if the given data is a PNG.

    Parameters:
        data (bytes): The data to check.

    Returns:
        True if the data is a PNG, False otherwise.

    """
    return data[:8] == b"\211PNG\r\n\032\n"