Cleared the Sonar Major findings for using isEmpty() to check whether th...

...e collection is empty or not.
This was the literal conversion of the Sonar finding and it passes the tests, but the name of the object being operated on following the condition implies the logic is backwards.