Remove unnecessary cast to bool