Use ember.isEmpty instead of type check
Error handling