Use Middleware return value as new route arguments only if it is an array