Javascript Determine If Object Is Array Js