update empty key check