removed redundancy in accessing the object's empty property