Typescript Check If Variable Is Array Of Cabinets