CONN-517: Fix for inversed if logic.