more than once she told herself she was taking these steps for herself , not the duke , and that she would have done the same if he was not in residence and instead was having a practice formal dinner with the girls .