fix for testing for existence of data record