nl_tokens: Checks that if there are external instances the master is one of them
pl_tokens: function isMasterExternalValueOk ( masterId , instances ) { const instanceIds = Object . keys ( instances ) ; let instance ; let hasExternal ; for ( let i = 0 ; i < instanceIds . length ; i ++ ) { instance = instances [ instanceIds [ i ] ] ; if ( instance . external ) { hasExternal = true ; break ; } } if ( hasExternal ) { return ! ! instances [ masterId ] . external ; } return <mask> ; }