Small conversion warning

there is an implicit conversion to bool here:

Thanks.