check for empty object earlier
remove redundant console log
grunt