remove console.log
proper check for isEmpty
add lodash dependency
handle the notAuthorized case
Merge pull request #1 from dweinstein/dev

Dev