Make isEmpty() properly handles maps. [fix #34]