/** * @return bool TRUE if the file can be read by the current user, FALSE otherwise */ public function isReadable() { if ($this->realFile === null) { throw new EyeUnsupportedOperationException(__METHOD__ . ' on ' . $this->path); } try { $this->checkReadPermission(); return $this->realFile->isReadable(); } catch (EyeSecurityException $e) { return false; } }