Only add imports if file contents exists