Handle case of no commits