code: public function isSymlinkedDirectory($directory)
      {
          if (!is_dir($directory)) {
              return false;
          }
  
          $resolved = $this->resolveSymlinkedDirectorySymlink($directory);
  
          return is_link($resolved);
      }
docs: return true if that directory is a symlink.
  
  @param string $directory
  
  @return bool