def are_floats(items):
    """
    detect if all items are floats
    """
    for i in items:
        try:
            float(i) if i is not None and len(i) > 0 else None
        except ValueError:
            return False
    return True
