in reply to
-e fails when file is proven to exist
For future people coming to this node (like me, who missed it when you first posted), this now makes no sense because the broken example code is now completely missing. It's better practice to use the strikethru markup or to add an edit that says something like "changed the third line to $foo = $bar. I accidentally deleted the second $ when prepping the code to post" - but leave the initial content alone, or fix it and stick in a comment noting this line was wrong.