I guess you could simply use $this->localTmpFile and check whether it's set instead of having an extra boolean (just got confused while reasing the code below) [minor]