std::begin to begin and use cast to bool in UpdateTask