DS-2097: Obvious boolean logic fix. Should be boolean AND, not boolean OR

Related to PR #605 , where this was initially noticed