are you just trying to toggle this? if so, `checkForChanges = !checkForChanges;`