Check for file before removing