Use or instead of and in case isDead() doesn't work properly