def check_if_duplicates(lst_img):
    """ Check if given list contains any duplicates """
    set_of_elems = set()
    for elem in lst_img:
        if elem in set_of_elems:
            return True
        else:
            set_of_elems.add(elem)
    return False