prefer bool conversion for portability