Typescript Check If Object Is Not Subscriptable