Ensure attributes exist