0 ){ foreach ($children as $child) { if ( in_array($child, $term_ids) ){ $is_latest_child = false; break; } } } return $is_latest_child; }