Checks for file existing.