On destroy and clear all only fire callback if fn is a function