Typescript Check If String Has Substring Php