Fix clang compiler warning on ! applying only to left-hand side of comparison.
Fix for clang "Unsequenced modification and access to parameter" warnings.