might be clearer as `if @document.details.closed_date.present?`