it is not to give a piece of advice, it is to get bits of advice, information, ideas in the course of his duty, "just in case" like maybe "if things go wrong, or if things come to a crisis point, just in case" Cedric says he wants to help Ralph do his job so well that that crisis, or whatever it is, does not happen. It is better to advise earlier to avoid the crisis, than try and do it at the time of the crisis. I had nothin' else goin', you are close, but it is more closer to Ralph having nothing else happening or going on at that time.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.