If any article, section, subsection, or provision in this chapter is declared to be illegal, unconstitutional, or invalid, by any court, such decision shall not affect or impair the validity of this chapter as a whole or any other article, section, subsection, or provision, or remaining portion of this chapter. The Board of Supervisors of Southampton Township, Cumberland County, Pennsylvania, hereby declares that it would have adopted this chapter and each article, section, subsection, and provision thereof irrespective of the fact that any one or more of the articles, sections, subsections, or provisions, may be declared illegal, unconstitutional, or invalid.