A body corporate may do an act under section 77 only for the purpose of performing its duties or exercising its powers.