public function routine(\XPSPL\Routine $routine) { if (count($this->_files) > 0 || count($this->_uploading) > 0) { $routine->add_idle($this); } }