I think that the documentation for the group field may be a little off. @tmconnect’s code is correct. The group field acts similar to a repeater field that always has 1 row, even if none of the sub fields have content. You need to check for the value of the group field as well as checking the value of each sub field. If this is an issue I’d submit a new support ticket https://support.advancedcustomfields.com/new-ticket/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users