Can't see any way that this wouldn't bee the first. The only way that this would no be in the first class is if another module will change the array of the link class. I'll replace it with array_search.