$args->walker->has_children

the $arg array or object has children inside a sub array. to access that you need to add one more step which is walker .

Share :