Yes the law is better than that, but the judgement is so much worse. Note this is the law:
The law seems to be fine, the judgment which ignores this law is what is laughable. Which in essence ignores the fact that you as Indian citizens get to make the laws through elected law makers. But if the judges start ignoring those laws and become samaj sevaks and make up new laws then they are also raping the Indian penal code.
And what about the man? Do you seriously think being a playboy is grounds enough to send a man to jail that too as a rapist?
In all other cases the a model (who lets not kid around, they are known to sleep around) sleeps with a 56 year old who comes from money, then makes a media spectacle out of him dumping her, would almost always be looked with suspicion as a gold digger.
The law supports the man in this instance. If the judges are sparing the woman, they are going against the law.