Cocoa is a stimulant, but I had not heard that it might improve brain function.
Another study, mentioned on Sunday Morning Health Call (FOX News), stated that dark chocolate also helps prevent strokes. So there is something in chocolate that helps the brain in more ways than one.