part of WELD-1398 - simplify bollean expression