Revert "Added suggested change from gtmanfred"

This reverts commit 67f6b112cf2af682133402537d13cfb622af882c.
Much better: Actually thought through the change suggested by gtmanfred.

Now the whole ifelse block gets used, AND we cover the NULL 'newpeers' value issue I had.
fixed a syntactical issue. Tested it again on my test setup, and it checks out.