Readability suggestion:
requiredFields = ["title"]

requiredFields.forEach( ...