check to make sure callbacks exist before calling them