Typescript Check If Value Is Not Null Or Undefined