Angular Typescript Check If Object Has Property