Check proper variable for null