public function linkExists($file, $asUser = null) { $result = $this->exec('test -l ' . escapeshellarg($file), $asUser); return $result['returnVar'] == 0; }