adding the condition to check if the object is empty until the Ember-template-compiler API is done