Whenever there is in any fund of the district money in excess of that required for the purposes of the fund up to the time when any part of the next annual assessment levied or to be levied in the district will become delinquent, the district may purchase with this surplus money or any part of it any of its outstanding bonds not yet due.