Added error checking on no adverts