public function __construct($path) { if (!file_exists($path)) { throw new FileNotFoundException($path); } parent::__construct($path); }