function hasEnoughWaypoints(points) { return Array.isArray(points) && points.length >= 6; } // It does not check shape, overlap or drivability.