optimize comparison with zero