public static function formatGroupPrefix($new, $old) { if (isset($new['prefix'])) { return trim(array_get($old, 'prefix'), '/') . '/' . trim($new['prefix'], '/'); } return array_get($old, 'prefix'); }