logging, checking for null