[Harmattan] remove unnecessary boolean compare