(2) Fixed previous_page script

fixed if statement to determine whether or not a previous page exists