Changed atk:IsValid() to IsValid(atk) to take into consideration the
attacker being nil