def _is_number(val):
    """
    Determine if the value is a number
    :param val:
    :return:
    """
    if isinstance(val, list):
        for v in val:
            if not _is_number(v):
                return False

        return True

    return isinstance(val, int) or isinstance(val, float)