A dictionary has 2 parts, a key and an item. If you try and add a duplicate key it'll error but in that code it is using the .exists method and exiting the function and setting the functions return value to true. I'm a big fan of dictionaries as I find them much easier to use than collections...