Typescript Check For Empty Object Javascript Definition