[c++] How to check if a std::string is set or not?