Fixed #5874 (False positive: 'opposite conditions in nested if' with arrays)