There are all sorts of possibilities. I usually blend the PF by the painted shader (so the other input in your setup and check 'blended by'), but you can also use a merge shader and test all possibilities there for different outcomes (add, difference.... 0...0.5...1...even 1.5 or higher). Best to see the outcome visually by plugging the 'final out' into a color input of a test surface layer (in the end of the line before planet of course). Hope this helps.
In your setup, the color of both nodes are added, so in the black 'no' region of the painted shader, trees will still grow, because of the whites in the PF.
---Dune