checking the variable is not necessary when using call compile because it is not run on a separate thread