Typescript Remove Element From Array If Exists