added an arguemnt to get if an ItemData instance is null or not.