determine to return nil by whether redirectResponse is nil