removing unneeded null check on file in driver