In any prosecution for endangering the welfare of a child, except where it is alleged to be punishable under § 1102(b)(1) or (b)(2) of this title, which is based upon an alleged failure or refusal to provide proper medical care or treatment to an ill child, it is an affirmative defense that the accused is a member or adherent of an organized church or religious group, the tenets of which prescribe prayer as the principal treatment for illness, and treated or caused the ill child to be treated in accordance with those tenets; provided, that the accused may not assert this defense when the person has violated any laws relating to communicable or reportable diseases and to sanitary matters.
11 Del. C. § 1104