def title
      @title ||= begin
                   fee = unpaid_fees.any? ? unpaid_fees.first : all_fees.first
                   fee.nil? ? 'Missing Title' : fee.case_title
                 end
    end
def title
      @title ||= begin
                   fee = unpaid_fees.any? ? unpaid_fees.first : all_fees.first
                   fee.nil? ? 'Missing Title' : fee.case_title
                 end
    end
Case title is returned with each fee liability, rather than as a top-level
 attribute of the case. If there are any unpaid fee liabilities, we want to
 take the title from the first of these (because that is the most relevant
 title)