check if the object not empty