Check that the $fileXml actually exists and isn't a null object.