Display a link to create new content when content missing (via Contextual Filters)?
Here I suppose you have added an argument in panel path. You can assign any context to your argument, eg Node: Id. It can be Term as well.



Assign any context to argument like :



Add a visibility rule if Context exists to your view and not exists to custom pane.