Hi,
The answer to your question depends highly on your design.
As far as I understand from your explanation, the CH flag would be set in all outgoing HELLOs if that node is a cluster head.
So, each time you send a HELLO message, you can get if that node is CH from your "HeadComputation()" method.
Now, if you would like to run this method each time you send the HELLO, or at other times and save the output in a variable, it's up to you.
That's why I said, it is your design.
Regards,
K.