changed get to return a std::tuple<bool, Datatype>