do not call callback if its not defined