delivered the opinion of the court:
In 2003, defendant, All Nations Worship Center (All Nations), began conducting worship services in Elgin. The city filed a complaint in the circuit court alleging that, under title 19 of the municipal code (the zoning ordinance), a church was not a permitted use in the district where All Nations was operating. All Nations responded with a counterclaim alleging that the zoning ordinance was unconstitutional and violated the Religious Land Use and Institutionalized Persons Act of 2000 (RLUIPA) (42 U.S.C. §2000cc et seq. (2000)). The trial court dismissed the counterclaim and All Nations appeals, contending that its counterclaim stated causes of action under the constitution and RLUIPA. We affirm.
In August 2003, All Nations began conducting services on property it leased in Elgin. Its use of the property included weekly worship services and preaching, counseling, prayer meetings, musical performances, religious rites such as weddings and baptisms, Bible studies, youth activities, social gatherings, and service projects.
All Nations’ property was located in an AB area business district where churches were not allowed as either a permitted or a conditional use pursuant to the zoning ordinance. In an attempt to comply with the ordinance, All Nations applied for a planned unit development permit. However, the city denied its application. The city then filed a complaint in the circuit court alleging that All Nations was violating the ordinance. All Nations answered the complaint and filed a counterclaim alleging that the ordinance was unconstitutional and violated RLUIPA.
All Nations’ counterclaim alleged that the zoning ordinance denied it equal protection (U.S. Const., amend. XTV) because the ordinance excluded churches from the AB district but permitted similar, nonreligious uses such as “membership organizations,” sports and recreation clubs, motion picture theaters, and funeral services. All Nations also alleged that the ordinance violated RLUIPA, which requires that municipal zoning not discriminate against church uses (42 U.S.C. §§2000cc(b)(l), (b)(2) (2000)) and not unreasonably limit religious assemblies within a jurisdiction (42 U.S.C. §2000cc(b)(3)(B) (2000)). All Nations alleged that the ordinance permitted various types of nonreligious assemblies in the AB zoning district but excluded churches, thus discriminating against churches. Moreover, the ordinance permitted churches as a matter of right in only 1 of 30 zoning categories, and as conditional uses in 2 more, thus unreasonably restricting churches from locating within the city. After All Nations filed its counterclaim, the city dismissed its complaint.
During this time, the city amended the zoning ordinance. After the amendment, a church can be a conditional use in the RB residence business district, the NB neighborhood business district, and the AB area business district. Elgin Ordinance No. G65 — 05, eff. July 27, 2005. Similar nonreligious uses would also have to apply for conditional use permits in those districts. Elgin Ordinance No. G65 — 05, eff. July 27, 2005. The city then moved to dismiss All Nations’ counterclaim, contending that the amendments cured any defects in the zoning ordinance. See 735 ILCS 5/2 — 619 (West 2004). The trial court dismissed the counterclaim and All Nations timely appeals.
All Nations does not appear to dispute that the amendment cured the perceived problems with the zoning ordinance. However, it contends that the trial court nevertheless erred in dismissing its counterclaim. All Nations argues that, prior to the amendment, it acquired a vested right to continue to operate without obtaining a conditional use permit. According to All Nations, because the ordinance was unconstitutional before it was amended, we should proceed as if the ordinance never existed. Because no zoning ordinance ever existed, All Nations was entitled to use its property any way it wished. Because it expended considerable amounts in making the property suitable for worship services, it acquired a vested right to continue operating in that fashion even after the ordinance was amended.
The city first responds that the case is moot. According to the city, the amendment cured the defects in the zoning ordinance that All Nations identified and, accordingly, All Nations can obtain no further relief. An appeal is moot where it presents no actual controversy or where the issues involved in the trial court no longer exist because intervening events have rendered it impossible for the reviewing court to grant effectual relief to the complaining party. In re J.T.,
The city further contends that the trial court properly dismissed All Nations’ complaint because All Nations did not acquire a vested right to continue its operations. The city contends that All Nations cannot attack the preamendment zoning ordinance as void and at the same time claim a vested right thereunder. The city appears to miss the point of All Nations’ argument, but not by much. All Nations argues that it acquired a vested right, not under the preamendment ordinance, but under the “common law” of zoning, i.e., as if no zoning ordinance ever existed. Nevertheless, we agree with the city’s primary contention that All Nations did not acquire a vested right to continue operating and, accordingly, the trial court properly dismissed its counterclaim.
A complaint or, as here, a counterclaim should not be dismissed under section 2 — 619 of the Code of Civil Procedure (735 ILCS 5/2— 619 (West 2004)) unless it clearly appears that no set of facts could be proved under the pleadings that would entitle the plaintiff to relief. Ogle v. Fuiten,
Initially, we note that there are several parallels between this case and Civil Liberties for Urban Believers v. City of Chicago,
All Nations, seeking to avoid the fate of the Civil Liberties plaintiffs, argues that it may proceed with its claims because it acquired a vested right to operate. Generally, there is no vested right to the continuation of a zoning ordinance. 1350 Lake Shore Associates v. Casalino,
Although it does not use this precise terminology, All Nations’ argument is based on the premise that the Elgin zoning ordinance was void ab initio. It has been stated that “[a]n unconstitutional law ‘confers no right, imposes no duty and affords no protection. It is *** as though no such law had ever been passed.’ ” People v. Gersch,
First, the void ab initio doctrine applies only to statutes and ordinances that are unconstitutional on their face. Hill v. Cowan,
Second, and perhaps more important, vested rights are acquired by attempting to comply with an ordinance as written. As noted, when a party expends substantial time and effort attempting to comply with an ordinance as it then exists and the legislative body amends the ordinance, the party may acquire a vested right to proceed under the old ordinance. 1350 Lake Shore Associates,
The supreme court recently discussed the void ab initio doctrine in Perlstein v. Walk,
“ ‘The Delaware Landlord Distress Law has never been adjudged unconstitutional. Therefore, it is clothed by a presumption of constitutionality. [Citations.] The [defendants] in the instant case were entitled to rely upon that presumption of constitutionality and validity, and to act reasonably and in good faith under the provisions of the Law as it then existed. Citizens and public officials have a right to accept the law as it is written until it is repealed or judicially condemned. They are not required to speculate upon the validity of a statute or to act under it at their peril. Until legislatively or judicially excised, a statute is an operative fact. Courts presume every legislative act constitutional and indulge every intendment in favor of validity. No penalty may be visited upon citizens for doing likewise.’ ” Perlstein,218 Ill. 2d at 463-64 , quoting Downs v. Jacobs,272 A.2d 706 , 707 (Del. 1970).
Perlstein holds that the existence of an ordinance is a historical fact that cannot simply be ignored. While a party may have a right to assume that an ordinance is valid and proceed accordingly, it has no corresponding right to do the contrary: to assume that the ordinance is invalid and proceed in violation of it. As Perlstein put it, a party is not “empowered” to determine for itself whether an ordinance is unconstitutional. Perlstein,
All Nations cites City of Marengo v. Pollack,
Because All Nations did not have a vested right to continue operations in violation of the zoning ordinance, the trial court properly dismissed its counterclaim. We note that All Nations is not without a remedy. As the city points out, under the amended ordinance churches are now a conditional use in the AB zone where All Nations’ property is located. In its brief, the city states that it would have no legitimate basis to oppose a conditional use permit for the subject property. While this statement is not binding on the city should All Nations choose to apply for a permit, it is at least some indication that the city is not prepared to close the door on the All Nations facility.
The judgment of the circuit court of Kane County is affirmed.
Affirmed.
GEOMETER, EJ., and HUTCHINSON, J., concur.
