If we make the callback optional like the original, then we should make sure it's a function before calling it here.