Checking if there's something to commit