Typescript Check For Empty String And Undefined