This function doesn’t work with facets see Is it not possible to use has() to check if a facet exists? - #4 by manojlds