Typescript String Not In Array Python Vs List