added check for an empty sound_path