Angular Typescript Check If Object Is Array In React