The district performs an essential public function in carrying out the purposes of this chapter.