checking if Hash is null or empty