I guess you're right, or this would be a common failure pattern.  I still think it's not a good case for foreach :)