change objIsEmpty property to a global function
change objIsEmpty property to a global function