moved ShouldCheck to utils because it makes more sense to have it there.