added some checks to make sure facets arent rendered if no results.