Checking callback before calling