Length of a JavaScript object - From https://stackoverflow.com/questions/5223/length-of-a-javascript-object
Object.keys(myArray).length