This nested if else is a little strange.  We redirect in both cases?