`if app.views.tailViews[taskId]?.options.path isnt path` is all you need