! Reversed logic lead to "undefined index" errors...

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1121 from Oldiesmann/release-2.1

! Reversed logic lead to "undefined index" errors...