Added check for object define property in ES5 version