This looks like it will probably be a string, possibly string|null?  If this is really mixed, maybe indicate what might be there?  Also, is 'thumbnail' guaranteed to exist?  Might check that as well.  This is where PHP is really annoying IMO.