/** 
  * Check if there is data to create the object 
  * 
  * @param array  $params         (reference ) an assoc array of name/value pairs 
  * @param array  $ids            the array that holds all the db ids 
  * 
  * @return boolean 
  * @access public 
  * @static 
  */
 function dataExists(&$params, &$ids)
 {
     // if we should not overwrite, then the id is not relevant.
     if (is_array($ids) && CRM_Utils_Array::value('individual', $ids)) {
         return true;
     }
     $fields =& CRM_Contact_DAO_Individual::fields();
     foreach ($fields as $key => $field) {
         if (!empty($params[$key]) && $key != 'contact_id') {
             return true;
         }
     }
     return false;
 }
 /**
  * adds $value['foo_display'] for each $value['foo'] enum from civicrm_individual
  *
  * @param array $values (reference)  the array up for enhancing
  * @return void
  */
 function addDisplayEnums(&$values)
 {
     $enumFields =& CRM_Contact_DAO_Individual::getEnums();
     foreach ($enumFields as $enum) {
         if (isset($values[$enum])) {
             $values[$enum . '_display'] = CRM_Contact_DAO_Individual::tsEnum($enum, $values[$enum]);
         }
     }
 }