How can I gracefully escape an error condition?

This line is wrong:

$xPath = new DOMXPath(@$dom);

Should be this:

$xPath = new DOMXPath($dom);

File not found.