part of WELD-1398 - simplify boolean expression and return