Check if val is null/undefined in get()