cant we use the hasVisibleParents() method present in CCControl class?