@amitRosenberg, what if the $name is also not null?