def mat_is_void(a):
    """
    Check whether a given matrix is void

    A matrix is considered as "void" if it is None or []

    Parameters
    ----------
    a: list[list]
        The matrix to be checked

    Returns
    -------
    bool
        True if the matrix is void, False otherwise

    """
    return a is None or len(a) == 0