[FIX] use _.isEmpty instead of Object.keys

Object.keys is not supported by all browsers (*cough* IE *cough*).
Also, bonus, isEmpty is more readable and more 'semantic'