implement a simple if-modified checker