VID-1529 Add braces around condition