Giant's Gate help! How to know if a ally's giant are dead

I have been studying for Giant’s Gate recently. Does anyone know how to make a code to identify if the team’s giant is dead or not? This is my code (I’m using Python)

def midCheck():
    giants = hero.findFriends()
    for i in giants:
        if i.x == 20 and i.y == 15 and len(giants) == 0:

So basically giants.x and giants.y are the coordinates of the down_Giant and if the list is empty, the code should be working. However the code is just didn’t work. Does anyone have any idea to solve this?