How to bypass empty records based on a field

if(queryEWMLP.HDSReceiptListId || queryEWMLP.PurchId)

{

hdsDailyReceiptsTmp.ReceiptDate = queryEWMLP.TransDate;

hdsDailyReceiptsTmp.WMSPalletId = queryWMSPallet.wMSPalletId;

hdsDailyReceiptsTmp.ReceiptsListId = queryEWMLP.HDSReceiptListId;

hdsDailyReceiptsTmp.PurchId = queryEWMLP.PurchId;

hdsDailyReceiptsTmp.insert();

}