check empty hash