hasFacet is used to detect that facet is defined and its content is rendered.
It is used heavily in bootstrap-ui sandbox components.