4 or fewer units In the case of any building which has 4 or fewer residential rental units, no unit in such building shall be treated as a middle-income unit if the units in such building are owned by— (i) any individual who occupies a residential unit in such building, or (ii) any person who is related (as defined in subsection (d)(2)(D)(ii)) to such individual. (D) Rules relating to students (i) In general A unit occupied solely by individuals who— (I) have not attained age 24, and (II) are enrolled in a full-time course of study at an institution of higher education (as defined in section 3304(f)), shall not be treated as a middle-income unit. (ii) Exceptions Clause (i) shall not apply to a unit occupied by an individual who— (I) is married, (II) is a person with disabilities (as defined in section 3(b)(3)(E) of the United States Housing Act of 1937), (III) is a veteran (as defined in section 101(2) of title 38, United States Code), (IV) has one or more qualifying children (as defined in section 152(c)), or (V) meets the income limitation applicable under subsection (g)(1) to the project of which the building is a part and is, or was immediately prior to attaining the age of majority— (aa) an emancipated minor or in legal guardianship as determined by a court of competent jurisdiction in the individual's State of legal residence, (bb) under the care and placement responsibility of the State agency responsible for administering a plan under part B or part E of title IV of the Social Security Act, or (cc) was an unaccompanied youth (within the meaning of section 725(6) of the McKinney-Vento Homeless Assistance Act ( 42 U.S.C. 11434a(6) )) or a homeless child or youth (within the meaning of section 725(2) of such Act ( 42 U.S.C. 11434a(2) )). (E) Owner-occupied buildings having 4 or fewer units eligible for credit where development plan (i) In general Subparagraph (C) shall not apply to the acquisition or rehabilitation of a building pursuant to a development plan of action sponsored by a State or local