Better check for nothing to commit