def is_hidden_cell(cell: dict) -> bool:
    """
    Checks if a cell is hidden.

    :param line: The cell to be checked.
    :returns: True if the cell contains is hidden.
    """

    try:
        if cell["metadata"]["jupyter"]["source_hidden"] is True:
            return True
        else:
            return False
    except KeyError:
        return False