Maybe I'm just losing my mind here but.. wouldn't this need to be default => $group, otherwise you're saying "If $group is set, set $safe_group to $safe_group which is nil right now.  right?  Or am I going crazy here.