1つずつ検査で良いなら
for c in cars:
if c.name == "z":
print("found")
break