Php If Array Has Javascript Substring