Fix falsy primary key value (0) failing to instantiate hasMany relationship. Changed if (instance[primaryKey]) to if (instance[primaryKey] !== undefined)