if($_FILES['cover_image']['size'] == 0) { // No file was selected for upload, your (re)action goes here }