handle nil company case