I had not thought about it but I suppose that hydration certainly plays a role in thinking. Nevertheless, I would emphasize the word enough since too much water could also have a negative impact, I think.
That would depend on whether one is below optimal level at the time. Oftentimes that is probably so. The increment in performance would only be so big however.