Fixed ArrayOutOfBoundsExceptions

added additional error checking in isSetName()