check to ensure that our parent is an element and not a fragment