export const isArray = Array.isArray || ((x: any): x is T[] => x && typeof x.length === 'number');