Typescript Check If Object Is Not Iterable