$group isn't set in this method

Not sure of the correct fix here. This method looks incomplete. Also $membership isn't set, but that is after the exit.