Before calling preSave, there is a check to see if preSave is a function. Otherwise, it isn't called.