check whether or not the parent is visible