public function isSeekable() { if (!$this->resource) { return false; } $meta = stream_get_meta_data($this->resource); return $meta['seekable']; }