public function handleClose() { if ($this->autoClose === true && is_resource($this->resource)) { fclose($this->resource); } }