Child to whom subsection applies
This subsection shall apply to any child for any taxable year if—
(A) such child— (i) has not attained age 18 before the close of the taxable year, or (ii) (I) has attained age 18 before the close of the taxable year and meets the age requirements of section 152(c)(3) (determined without regard to subparagraph (B) thereof), and (II) whose earned income (as defined in section 911(d)(2)) for such taxable year does not exceed one-half of the amount of the individual’s support (within the meaning of section 152(c)(1)(D) after the application of section 152(f)(5) (without regard to subparagraph (A) thereof)) for such taxable year,
(B) either parent of such child is alive at the close of the taxable year, and
(C) such child does not file a joint return for the taxable year.