Better NSCoding implementation

Crash on nil valueForKey because Swif at the moment