Typescript Add To Array If Not Undefined