Use default std::optional if it is provided