Make checkNull just check for null and return a default