"A friend in need is a friend indeed" is an old saying which means that a person is your friend as long as you have something to give.
If a person is your friend even when all you have to give
is your friendship, then that is a true friendship which should be cherished.