empty check fix