Como posso verificar se um objeto é uma matriz

In modern browsers you can do:

Array.isArray(obj)
shafeeque