I especially agree on the approach regarding pay. Contrast that with "I have an offer from Company X that is 20% more, can you match it?" In the former case, you can be seen as expressing a sort of loyalty, in the latter case you live with a little extra workplace hostility even if your current employer agreed to match the offer. In that sense, when it's time to go it's best to go.