Use ?? operator instead of CRM_Utils_Array::value() when fetching ids