ages of exploration and enlightenment although a systematic study of religions as an academic subject did not emerge until the second half of the 19th century , the groundwork was laid in the three preceding centuries .