     # Loop over all returned data types and update our local storage to represent any new data.
 
     results = resp['results']
-    keys = _.reject(_.keys(resp), (key) -> key == 'count' || key == 'results')
+    keys = _.reject(_.keys(resp), (key) -> _.contains(knownResponseKeys, key))
     unless _.isEmpty(results)
       keys.splice(keys.indexOf(@loadOptions.name), 1) if keys.indexOf(@loadOptions.name) != -1
       keys.push(@loadOptions.name)

    # The server response should look something like this:
    #  {
    #    count: 200,
    #    results: [{ key: "tasks", id: 10 }, { key: "tasks", id: 11 }],
    #    time_entries: [{ id: 2, title: "te1", project_id: 6, task_id: [10, 11] }]
    #    projects: [{id: 6, title: "some project", time_entry_ids: [2] }]

Collection = require '../collection'
AbstractLoader = require './abstract-loader'

knownResponseKeys = ['count', 'page_count', 'page_number', 'results']

class CollectionLoader extends AbstractLoader

