The check if `srcObj[field]` is an object is duplicated, as it's already done in the line above.