LPS-51962 - Fix the conditional to work for all cases