check for null data