 SPOILER: According to M. Night Shyamalan (qv), the movie was  inspired by an episode of  _"Are You Afraid of the Dark?" (1992)_ (qv) called  _"Are You Afraid of the Dark?" (1992) {The Tale of the Dream Girl (#3.10)}_ (qv)  directed by David Winning (I) (qv) in which leading characters are  ignored by somebody and dont realize that they are dead until the  final moment. In The Tale of the Dream Girl, a brother discovers  that only his sister can see him and she ultimately shows him his  own obituary.