checking for null types