change to use check argument instead of checkNull from the sun tools package