Checks if file exists.