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