Check if there is anything to commit