Section 18. A person who declares that he has conscientious scruples against taking an oath shall, when called upon for that purpose, be permitted to affirm in the manner prescribed for Quakers, if the court or magistrate on inquiry is satisfied of the truth of such declaration.