Also check for grandparent-element before accessing it