Fixed notice - Undefined offset: 1
Before returning linktext, checked for null.