if ("name" in picinfo[f] && picinfo[f].name.length > 0) {
var escaped_filename = "'" + shell_escape(picinfo[f].name) + "'";
if (picinfo[f].deleted == "deleted") {
if ("name" in picinfo[f] && picinfo[f].name.length > 0) {
var escaped_filename = "'" + shell_escape(picinfo[f].name) + "'";
if (picinfo[f].deleted == "deleted") {