protected function retreivePermission($permissions, $check_permissions, $level)
    {
        $sorted_permissions = explode(',', $check_permissions);
        ksort($sorted_permissions);
        
        foreach ($sorted_permissions as $item) {
            $item = trim($item);
            if (! array_key_exists($item, $permissions) && ! empty($item)) {
                $permissions[$item] = $level;
            }
        }
        
        return $permissions;
    }