In the absence of an epidemic or immediate threat thereof, this section does not apply to any child whose parent or guardian files with proper authorities a signed, written statement that such immunization and other preventative measures conflict with the religious tenets and practices of the parent or guardian affirmed under penalties of perjury.