This chapter does not apply to a planned community in which all units are restricted exclusively to nonresidential use unless the declaration provides that the chapter does apply to that planned community. This chapter applies to a planned community containing both units that are restricted exclusively to nonresidential use and other units that are not so restricted, only if the declaration so provides or the real estate comprising the units that may be used for residential purposes would be a planned community in the absence of the units that may not be used for residential purposes.