Check notify fn is defined before doing a call.