def _is_list_of_float(l):
    return isinstance(l, list) and all(_is_float(e) for e in l)