Tag: check if value already exists in array typescript