Added function to determine if an element is in my view but not a child's view