`$this->getFile()` is assumed to return a filename as `is_file()` takes a filename as parameter