Added is_array check to hierarchical facets to avoid PHP notice when no hierarchical facets are defined.