protected function moduleIsWritable() { $dir = $this->root . '/module'; if (!file_exists($dir)) { return $this->rootIsWritable(); } return is_writable($dir); }