batch()->cancelled()) { // The batch has been cancelled... return; } // } }