The study is here[1; non-paywalled].
A series of follow-ups might look like this:
1: GWAS to look for genetic association with chocolate consumption.
2: Mendelian randomization to assess whether an inherent predisposition for increased chocolate consumption leads to increased cognitive function.
The same approach has been used to assess whether there is a dose-response of alcohol on mortality (the answer appears to be "yes," and there is no U-shaped curve).[2; non-paywalled]
This is mostly just to say that I'm not convinced by such tortured data in an association study, but if there is enough interest in the hypothesis, then the path forward to assess causality is clear.
1 = http://www.sciencedirect.com/science/article/pii/S0195666316...
2 = http://www.bmj.com/content/349/bmj.g4164