Read ID3v1, IDv2, APE priority?

The priority is APEv2 > ID3v2 > ID3v1. Even if an APEv2 tag is present but empty, it will be prefered over an ID3v2 tag.