Yep, the check for fn is not undefined is unnecessary in this instance, it lends itself to this function.  I became fatigued after editing this several times.  I must say the branch commit review is very useful for code review workflow.