Simplified behavior of getPath by removing the defaults functionality and treating null as just one more value to return.