check if Flag has custom_segment attr