Fixed bug that shadowed mappings

Changed `!` for `empty` when testing for string emptiness.