The checkNull method should be renamed