added fallback for having no contacts.