Fix implicit conversion to bool