Add function check before callback
Readme Documentation