Wrapped call to callback in if-check