public function isDot() { if ('.' === $this->name || '..' === $this->name) { return true; } return false; }