Should any section or provision of the UDO be declared by the courts to be unconstitutional or invalid, such decision shall not affect the validity of the UDO as a whole, or any part thereof other than the part so declared unconstitutional or invalid. The mayor and council hereby declare that it would have adopted the remaining parts of the UDO if it had known that such part or parts thereof would be declared or adjudged invalid or unconstitutional.