At the very end of the redirect function in pset7 in functions.php there was:
//exit immediately since we're redirecting anyway.
exit;
I know that exit prevents from interpreting any code below it but the function is returning anyway. So, why it existed here?