use new shortend test of scanner hasdata()