Remove unnecessary parent_tag value check