Typescript Check Array Contains Php Download Image