Quick tidy up of getAdvertisements()