handle edge case where pop is popping from an empty object