withDefault function

Check default value