Check for file existance first