public function verifyFileExists($path, $label = 'path')
{
if (realpath($path) === false) {
throw new Exception(sprintf('Could not resolve the %s at %s', $label, $path));
}
if (!file_exists($path)) {
throw new Exception(sprintf('Could not find the %s at %s', $label, $path));
}
}