Add isEmpty and notEmpty methods to HashMaps.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>