Improve dropEmpty and path, add tests. Make negate.