why not move this check to AnalyticalGeometry.h?