I have code that dynamically adds properties to an array.
data.tagAdded[tag.Name] = {
                    tag: tag,
                    count: 1,
                };
Later in my code I need to check rather data.tagAdded has properties. If it doesn't have properties I need to do some other code. The problem is I can't figure out how to check for the existence properties.
The tagAdded = [] is always an array rather it contains properties or not, so I can't check if it is null. I can't say if property because I don't know the name of the property since it is dynamic. I can't check length because an array with properties is of length 0. 
Any other way to check if properties exist?
