If there is a deficit in the improvement fund of an assessment district during any fiscal year, the legislative body, from any available and unencumbered funds of the local agency, may provide for:
(a) A contribution to the improvement fund.
(b) A temporary advance to the improvement fund and direct that the advance be repaid from the next annual assessments levied and collected within the assessment district.