1:
if (!isset($data['images'][$image]) || !$data['images'][$image]) continue;
if (wbb_strtolower(wbb_substr($image, - 4)) == ".php") continue;