check hashmap isnt empty