fix template condition to work properly if no banners.