Using std::ifstream inside bool exist.