Typescript Array Remove If