nil check for to-uuid function