check keys correctly in returned $.Deferred().promise()