null out details if empty