fix: need explicit conversion from 'basic_istream<char, std::__1::char_traits<char> >' to 'bool'