Add CC on comment for only specific emails

I’m attempting to write a custom action which adds the commenter as a CC whenever a comment is made, but I only want it to do this for specific users. ideally it would work only for users in a specific group.

So far I have a scrip that successfully adds any commenter as a cc, I just need help limiting it to specific users, or ideally users in a specific group. Any help with this would be greatly appreciated.
I am running RT 5.0

Condition: On Comment
Action: User Defined
Template: Blank

Custom Condition:

Custom action preparation code:
return 1;

Custom action commit code:
my $current_user = $self->TransactionObj->CreatorObj;
$self->TicketObj->AddWatcher(Type=>‘Cc’,Email => $current_user);

return 1;

This should work!

my $group = RT::Group->new( RT->SystemUser );
my ($ret, $msg) = $group->LoadUserDefinedGroup( "Some group name" );
unless ( $ret ) {
    RT::Logger->error( "Could not load group 'Some group name': $msg" );
    return;
}

my $current_user = $self->TransactionObj->CreatorObj;
if ( $group->HasMemberRecursively( $current_user->PrincipalId  ) ) {
    ($ret, $msg) = $self->TicketObj->AddWatcher( Type=> 'Cc' , Email => $current_user );
    RT::Logger->error( "Could not set Cc: $msg" ) unless $ret;
    return $ret;
}
return 1;

You’re amazing thank you so much!
Just tested it out and it worked perfectly!