Sometimes, prev.mappings can be an empty string

Better to check that `prev.mappings` is a string than check that `prev.mappings` is not *false*.