Let's create a method to handle the if (callback) checks everywhere, similar to other projects.