Imran willing to apologise to court