[4.2] Redirect response : refactor with

So that if `$key` contains 10 items, we don't have to check 10 times that `$key` is an array.