def vec_is_void(a):
    """
    Check whether a given vector is empty

    A vector is considered "void" if it is None or has no
    elements.

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

    Returns
    -------
    bool
        True if the vector is empty, False otherwise

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