Press S to show Scratch cat and space to hide. Press G for 100% ghost and C to cancel that. Green sprite is just to show that it doesn't matter if there's another sprite between the stage and the sprite being checked.
Realised the stage can be used to detect if a sprite is hidden or showing. Not sure if anyone else has discovered this - happy to give credit to any older topic that does so.