Add check for file variable.