Fix PHP warning during unlink