explode() always returns an array of strings, so list() will most likely never be able to assign $contentType to null. Tests should proof that `if ($contentType === '') {}` might be required here.