So I am trying to get the length of an object array to see if it exists, but im having trouble doing that. I tried doing datalogs.Punishments.length but it said its not a funct