make pop<bool> compare to 0 instead of casting to bool