Corrected if(is.null(filevar))