The district is a public entity performing an essential public function.