Typescript If Object Is Not Empty