Let us have an array:
array(1) { [0]=> string() "Нерабочая ссылка на картинку" [1]=> string() "Рабочая ссылка на картинку" ... } You need to start brute forceing it, in case the picture does not exist on the link - skip and move on, if there is then print save on the server (copy).