First yellow card should've been Rafael's free kick. Secons should never have been a yellow card, and most definitely not a second yellow card.
Refs lose us yet another game.
As I said, the first yellow card was a blatant, very obvious trip and most deserving of a yellow.
El G has covered off the second yellow card very nicely.
So all said and done, I think we can all agree Rafael deserved to be sent off and the ref was absolutely correct in his decision making.