public function hasThumbnail() { return in_array($this->mimetype, array('image/jpeg', 'image/gif', 'image/png')); }