It should really be !== ‘undefined’ to avoid matching everything that Blob can be a type of