How you've done it is the way to go - if you don't perform DoProcess then you won't get any controls updated.

I was just pointing out that there's no danger of a NULL dereference here as the bool is only true if control is non-NULL.