FYI- err == null will catch both undefined && null and nothing else