Faster implementation of map-empty-p