Anchor is in overset text or XML #indesignjs
// Based on Marc Autret Idea http://www.indiscripts.com/post/2011/10/how-to-detect-a-ghost-item
var isGhost = (frame.parent instanceof Character) && (!frame.parent.parentTextFrames.length || frame.parent.parent instanceof XmlStory);