check if list of objects contain an object with a certain attribute value,any(x.name == 't2' for x in l)