Typescript Add To Array Conditionally Guilty