fix of using get method in empty()