The `$group == ''` check might be redundant, since if the `$group` param exists, it will already be defined to `$uri` above, which is checked before `$controller_method` anyway.