Defend for in loop