I have some functions which occasionally (not always) will receive a callback and run it. Is checking if the callback is defined/function a good style or is there a better w
If the criteria for running the callback is that whether its defined or not, then you're fine. Also, I suggest to check if its really a function in addition.