Check If Object Is Array In Javascript