The film starts with a message that the movie is compeltely fictional and ends with this what we have been.
In the entire movie there wouldn't be a single instance where you suspect that the hero may not accomplish the goal. Perhaps a kichidi of Superman, National treasure and Harry Potter.
With all being said, I give credit to Karthikeya for gripping background