fullPathForFilename optimization: Checking whether the path is an empty string.