In Jurassic World, Irrfan Khan's character Masrani makes a reference to another character he played in Life of Pi:
MASRANI: So, how's my park doing?
CLAIRE: We're up two and a half percent over last year, a bit lower than our initial projections--
MASRANI: No, no, no, how's it doing? Are the guests having fun? Are the animals enjoying life?
CLAIRE: Well, guest satisfaction is steady. In the low nineties. We don't have a way to measure the animals' emotional experience.
MASRANI: Sure you do. You can see in their eyes...
PI: Animals have souls. I have seen it in their eyes.
Was this line ad libbed by the actor, or was the reference included by the script writers once Khan had been cast?