Check if List of Objects contain an object with a certain attribute value,any(x.name == 't2' for x in l)