def dl_delete(dl, curr):
    """ Delete current item
    """
    if curr is None:
        print('ERROR dl_delete(): DELETING ITEM NULL')
        return False
    if dl.head is None or dl.tail is None or dl.itemsInContainer == 0:
        print('ERROR dl_delete(): DELETING ITEM IN EMPTY LIST')
        return False
    if curr.prev is None:
        dl.head = dl.head.next
        if dl.head:
            dl.head.prev = None
        else:
            dl.tail = None
    else:
        curr.prev.next = curr.next
        if curr.next:
            curr.next.prev = curr.prev
        else:
            dl.tail = curr.prev
    dl.itemsInContainer -= 1
    curr.prev = None
    curr.next = None
    del curr
    return True
