public function isImage() { if ($this->getFileType() == 'image') { return true; } else { return false; } }