If what is and what isn't law was that clear cut, the case wouldn't escalate to the European Court of Justice. Add to that that laws are arbitrarily incoherent and therefore the decision is just one possible interpretation of the law, albeit one that will be upheld.