Adding checking null values for items