Yes, simplest way to validate this is to go to Ireland and try the same thing, I pretty sure you will end up paying 12.5% tax no matter what.
Apple's structures are a correct reading of international tax rules. The rules should be changed; Apple should not be punished for following the law.