In a case of David vs. Goliath, the Mexican Supreme Court has upheld a lower court ruling that iFone, a small IT company in Mexico City, is the rightful owner of the iPhone name in that country.

The company registered the name in 2003, four years before Apple (AAPL) rolled out the smartphone it dubbed the iPhone, according to the Wall Street Journal.

The case goes back to 2009, when Apple tried to register the phone brand name in Mexico and the Mexican Industrial Property Institute said it was already taken. Apple tried to take the name by suing, arguing that it had expired for iFone.