you can use `! Array.isArray(contacts)`, it's more reliable