I don't think 'nullable' is always set, maybe add an isNullable method to ClassMetadata