Function can see variable

$image would never be empty - if a file is uploaded, that element simply doesnt exist, so the foreach will only operate on existing elements. Note that this is NOT the same behavior as a text box, but IS the same behavior as a checkbox.

Assuming $images is tied to $_FILES[‘images’], this would work.