fix(check-exists): check for undefined and null keys