Added else echo statements to conditionals and echo statement before unserialzed array