Maybe no bookmarks get added because this line will not evaluate to true because '00' != '000000'?

I actually don't understand this if statement. What if there is no entry under data['000000'] but there is one under data['123123'], surely we should still continue to set bookmarks?