public function getFileProperties() { if (present($this->hash) === false || present($this->ext) === false) { return; } return ['hash' => $this->hash, 'ext' => $this->ext]; }